package com.link.base.base.common.dao.mybatis.mapper;

import com.link.base.base.common.model.Image;
import com.link.base.base.product.model.Product;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/9 11:09
 * @version 1.0
 */

public interface ImageMapper {
    /**
     * 图片插入
     * @param image
     * @throws Exception
     */
    public void imageInsert(Image image) throws Exception;

    /**
     * 图片更新
     * @param image
     * @throws Exception
     */
    public void imageUpdate(Image image) throws Exception;

    /**
     * 图片删除
     * @param image
     * @throws Exception
     */
    public void imageDelete(Image image) throws Exception;

    /**
     * 通过id删除图片
     * @param record
     * @throws Exception
     */
    public void imageDeleteById(Product record) throws Exception;

    /**
     * 通过id查询图片
     * @param record
     * @return
     * @throws Exception
     */
    public Image imageSelectById(Product record) throws Exception;
}
